package com.knife.bbs.business;

import java.util.Date;

import com.knife.web.tools.IActiveUser;

/**
 * 在线用户信息
 */
public class ActiveUser implements IActiveUser {
	private String cid;
	private String username;
	private String ip;
	private String password;
	private Date logintime;
	private Date lastvisittime;
	private String curpostion;

	public ActiveUser() {
		super();
	}

	public String getCurposition() {
		return curpostion;
	}

	public void setCurposition(String curPosition) {
		this.curpostion = curPosition;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Date getLogintime() {
		return logintime;
	}

	public void setLogintime(Date loginTime) {
		this.logintime = loginTime;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUsername() {
		return username;
	}
	
	public String getUserName(){
		return username;
	}

	public void setUsername(String userName) {
		this.username = userName;
	}

	public int hashCode() {
		return this.getUserName().hashCode();
	}

	protected void finalize() throws Throwable {
		super.finalize();
	}

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public Date getLastvisittime() {
		return lastvisittime;
	}

	public void setLastvisittime(Date lastVisitTime) {
		this.lastvisittime = lastVisitTime;
	}

	public String getCurpostion() {
		return curpostion;
	}

	public void setCurpostion(String curPostion) {
		this.curpostion = curPostion;
	}

}
